package com.social.service;

import com.social.pojo.Personnel;
import com.social.pojo.Result;
import com.social.pojo.vto.PersonnelVTO;

/**
 * @author 25241
 */
public interface PersonnelService {

    Result insert(Personnel personnel);
    Result deleteById(Integer id);
    Result update(Personnel personnel);

    Result findAll(Integer size, Integer index);
    Result findByTelephone(String phone);
    Result findById(Integer id);
    Result findByUsername(String username);
    Result findByEditId(PersonnelVTO personnelVTO);

    Result findByCity(String city, String street);

    Result findByUser();

    Result saveUser(Personnel personnel);
}
